﻿@model NationalIT.Fuel___Expenses
@{
    ViewBag.Title = "Fuel Expenses";
}
<div class="row-fluid">
    <div class="span12">
        <div class="box">
            <div class="box-title">
                <h3>
                    <i class="icon-table"></i>Fuel Expenses</h3>
            </div>
            <div class="box-content">
                <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
                <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
                @using (Html.BeginForm())
                {
                    @Html.ValidationSummary(true)
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Date)
                    </div>
                    <div class="editor-field">
                        @Html.TextBoxFor(model => model.Date, new { Value = Model != null && Model.Date.HasValue ? Model.Date.Value.ToString("MM/dd/yyyy") : "", Class = "date-picker" })
                        @Html.ValidationMessageFor(model => model.Date)
                    </div>
                    <div class="editor-label">
                        Type
                    </div>
                    <div class="editor-field">
                        <select name="cboType">
                            @Html.Raw(ViewBag.Type)
                        </select>
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Amount)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Amount) ($)
                        @Html.ValidationMessageFor(model => model.Amount)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.AmountN) 
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.AmountN) ($)
                        @Html.ValidationMessageFor(model => model.AmountN)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Location)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Location)
                        @Html.ValidationMessageFor(model => model.Location)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Driver)
                    </div>
                    <div class="editor-field">
                        <select data-placeholder="Select Driver" name="Driver" class="chosen-with-diselect input-xlarge">
                            @Html.Raw(ViewBag.dataDriver)
                        </select>
                        @Html.ValidationMessageFor(model => model.Driver)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Description)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Description)
                        @Html.ValidationMessageFor(model => model.Description)
                    </div>
                    <div class="editor-label">
                        <label>
                            @Html.CheckBoxFor(model => model.Paid_off) Paid_off</label>
                        @Html.ValidationMessageFor(model => model.Paid_off)
                    </div>
                    <div class="editor-field">
                        <label>
                            @Html.CheckBoxFor(model => model.Current_Payroll) Current_Payroll</label>
                        @Html.ValidationMessageFor(model => model.Current_Payroll)
                    </div>
                    <div class="editor-field">
                        <label>
                            @Html.CheckBoxFor(model => model.fee_charged) fee_charged</label>
                        @Html.ValidationMessageFor(model => model.fee_charged)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Fuel_Card)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Fuel_Card)
                        @Html.ValidationMessageFor(model => model.Fuel_Card)
                    </div>
                    <p>
                        @Html.Partial("_ShowSaveEdit")
                    </p>
                }
            </div>
        </div>
    </div>
</div>
